//
//  FLSectVideoCollectionViewCell.m
//  FeeLing
//
//  Created by 乔光玉 on 2019/1/3.
//  Copyright © 2019年 大仙儿飘. All rights reserved.
//

#import "FLSectVideoCollectionViewCell.h"

@implementation FLSectVideoCollectionViewCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _topImage  = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width, self.height)];
        _topImage.backgroundColor = [UIColor colorWithHexString:@"#2B2D5C"];
        _topImage.clipsToBounds = YES;
        _topImage.layer.cornerRadius = 4;
        _topImage.contentMode = UIViewContentModeScaleAspectFill ;
        [self.contentView addSubview:_topImage];
        
        _botlabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.height-24, self.width-10, 14)];
        _botlabel.textAlignment = NSTextAlignmentRight;
        _botlabel.textColor = [UIColor whiteColor];
        _botlabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size: 10];
        _botlabel.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:_botlabel];
        
        self.selectdView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.width, self.height)];
        self.selectdView.backgroundColor = [UIColor colorWithHexString:@"#000000"];
        self.selectdView.alpha = 0.29;
        self.selectdView.hidden =YES;
        [self.contentView addSubview:self.selectdView];
        
        self.selectedImageView = [[UIImageView alloc]initWithFrame:CGRectMake(self.width-20, 0, 20, 20)];
        [self.selectedImageView setImage:[UIImage imageNamed:@"选择视频"]];
        
        self.selectedImageView.hidden = YES;
        [self.contentView addSubview:self.selectedImageView];
        
    }
    
    return self;
}

@end
